package Controller;

import dao.EnderecoDAO;
import idao.IEnderecoDAO;
import entity.Endereco;
import IController.IEnderecoController;

public class EnderecoController implements IEnderecoController{

	private IEnderecoDAO enderecoDAO;
	
	public EnderecoController() {
		
		this.enderecoDAO = new EnderecoDAO();
		
	}
	
	@Override
	public void cadastra(Endereco endereco) {
		this.enderecoDAO.cadastra(endereco);
	}
	
	@Override
	public void atualiza(Endereco endereco) {
		this.enderecoDAO.atualiza(endereco);
	}

}
